I accidentally closed the accounting period. How can I correct this?

You cannot "undo" a bookclose process. Your only option is to restore a database backup prior to running the bookclose.  

Restore your latest backup using the IMPORT DATABASE feature found under FILE off the main menu.