Move failed CORSIKA runs to the failed dir

Detect exit code of CORSIKA
Based on the result move the run either to the data or failed dir
Exit the script with the correct exit code.