Corrected a mistake in return type

Abort and format had wrong return type