Added proper signal handling
Added proper http headers