Improved command related routines.
This commit overhauls how core commands in application are ran and their final exit status is resolved to avoid potential deadlock.
- Removed mutex usage as we already create a copy of the established command making this an unnecessary operation.
- Corrected command error channel and established constant buffer.
- Clearly specify final desired exit status.